home *** CD-ROM | disk | FTP | other *** search
- ******************************************************************************
- * PROGRAM: Changeq.wfm
- *
- * WRITTEN BY: Borland Samples Group
- *
- * DATE: 5/93
- *
- * UPDATED: 6/94
- *
- * REVISION: $Revision: 1.48 $
- *
- * VERSION: dBASE FOR WINDOWS 5.0
- *
- * DESCRIPTION: This is a form called from Equipmnt.wfm that brings up a
- * dialog which allows selecting an aircraft to replace the
- * one currently used for a flight. This form contains
- * a listbox of plane names, and a bitmap displaying the
- * currently selected plane type. It also has Ok and Cancel
- * buttons that respectively allow the selections to be saved or
- * ignored.
- *
- *
- * PARAMETERS: None
- *
- * CALLS: Buttons.cc (Custom controls file)
- * Changeq.qbe (View of tables)
- *
- * USAGE: Do Changeq.wfm
- * or
- * (this is how this file is used in the equipment program)
- *
- * set procedure to Changeq.wfm additive
- * local f
- * f = new ChangEq()
- * f.mdi = .f. && because modal forms cannot be mdi
- * f.ReadModal()
- *
- *******************************************************************************
- create session
- set talk off
- set ldCheck off
-
- ** END HEADER -- do not remove this line*
- * Generated on 06/17/94
- *
- LOCAL f
- f = NEW CHANGEQFORM()
- f.Open()
-
- CLASS CHANGEQFORM OF FORM
- Set Procedure to Buttons.cc Additive
- this.ColorNormal = "N/0XFFFF80"
- this.Text = "Equipment Selection"
- this.MousePointer = 1
- this.View = "CHANGEQ.QBE"
- this.Width = 61.25
- this.Top = 0.54
- this.Left = 19.42
- this.Height = 18.18
- this.Minimize = .F.
- this.Maximize = .F.
- this.HelpFile = ""
- this.OnClose = {;close procedure Buttons.cc}
- this.HelpId = ""
- this.OnSelection = CLASS::ONSELECTION
-
- DEFINE IMAGE LOGOIMAGE OF THIS;
- PROPERTY;
- Alignment 2,;
- DataSource "FILENAME AIRBRLN2.BMP",;
- Width 61.36,;
- Top 0.00,;
- Left 0.00,;
- Height 5.78
-
- DEFINE ENTRYFIELD AIRCRAFT OF THIS;
- PROPERTY;
- ColorNormal "N/0XFFFF80",;
- Border .F.,;
- Width 32.87,;
- Top 6.06,;
- DataLink "AIRCRDB->AIRCRAFT",;
- Left 26.23,;
- Height 1.10,;
- FontSize 10.00,;
- Enabled .F.
-
- DEFINE TEXT TYPETEXT OF THIS;
- PROPERTY;
- ColorNormal "N/0XFFFF80",;
- Border .F.,;
- Text "Plane",;
- Width 23.74,;
- Top 6.06,;
- Left 1.16,;
- Height 1.10,;
- FontSize 10.00
-
- DEFINE LISTBOX PLANETYPE OF THIS;
- PROPERTY;
- DataSource "FIELD AIRCRDB->AIRCRAFT",;
- ColorNormal "N/GB*",;
- CurSel 1,;
- ColorHighLight "W+/B",;
- ID 800,;
- Width 23.74,;
- Top 7.42,;
- Left 1.16,;
- FontName "Arial",;
- Height 8.32,;
- FontSize 11.25,;
- FontItalic .T.
-
-
- DEFINE OKBUTTON OKCHANGEQ OF THIS;
- PROPERTY;
- Text "OK",;
- Width 14.11,;
- Top 16.16,;
- Left 30.71,;
- Default .T.,;
- Height 1.50
-
- DEFINE CANCELBUTTON CANCELCHANGEQ OF THIS;
- PROPERTY;
- Text "Cancel",;
- Width 14.11,;
- Top 16.16,;
- Left 45.65,;
- Height 1.50,;
- Group .F.,;
- Id 0
-
- DEFINE IMAGE PLANEIMAGE OF THIS;
- PROPERTY;
- DataSource "BINARY AIRCRDB->IMAGE",;
- Width 33.53,;
- Top 7.42,;
- Left 26.23,;
- Height 8.26
-
- *******************************************************************************
- procedure OnOpen
- *******************************************************************************
- if type("this.childRec") <> "U"
- this.planeType.curSel = this.childRec
- go this.childRec
- endif
-
- *******************************************************************************
- procedure OnSelection (controlId)
- *******************************************************************************
- if controlId <> 0 && Cancel wasn't selected
- this.value = this.planetype.value && Return value to calling form
- endif
- this.Close()
-
- ENDCLASS
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-